package com.xy.modulemain.viewholder

import android.view.View
import androidx.recyclerview.widget.RecyclerView
import com.xy.modulemain.bean.Item
import com.xy.modulemain.view.ICustomerView

/**
 * @ClassName BaseViewHolder
 * @Author xy
 * @Date 2021/8/23 10:45
 * @Description 描述
 */
 class BaseViewHolder : RecyclerView.ViewHolder {
     var view: ICustomerView<Item>

    constructor(itemView: ICustomerView<Item>) : super(itemView as View) {
        view = itemView
    }

    fun bind( item: Item) {
        view.setData(item)
    }
}